package com.my.study.structures.linkedlist;

import lombok.extern.slf4j.Slf4j;

/**
 * @author Carlos
 * @version 1.0
 * @Description TODO
 * @date 2021/6/10 23:12
 **/
@Slf4j(topic = "c.DoubleDemo")
public class DoubleDemo {

    public static void main(String[] args) {
        DoubleLinkedList linkedList = new DoubleLinkedList();

        linkedList.addLast(1, "宋江", "及时雨");
        linkedList.addLast(2, "吴用", "智多星");
        linkedList.addLast(3, "卢俊义", "玉麒麟");
        linkedList.list();

        System.out.println("---------------------------------------------------");

        linkedList.update(3, "李逵", "黑黑黑");
        linkedList.list();




    }
}
